﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EBuffRemoveType extends Object
    {
        public var __value:int;
        public static const _EBuffRemoveTypeWontRemove:int = 0;
        public static const _EBuffRemoveTypeBeAttacked:int = 1;
        public static const _EBuffRemoveTypeSkill:int = 2;
        public static const _EBuffRemoveTypeDead:int = 4;
        public static const _EBuffRemoveTypeRefresh:int = 8;
        public static const _EBuffRemoveTypeSwitchMap:int = 16;
        public static const _EBuffRemoveTypeSelf:int = 32;
        public static const _EBuffRemoveTypeFigthMode:int = 64;
        public static const _EBuffRemoveTypeAttack:int = 128;

        public function EBuffRemoveType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EBuffRemoveType
        {
            return new EBuffRemoveType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EBuffRemoveType
        {
            var _loc_2:* = param1.readShort();
            if (_loc_2 < 0 || _loc_2 >= 129)
            {
                throw new MarshalException();
            }
            return EBuffRemoveType.convert(_loc_2);
        }// end function

    }
}
